from bs4 import BeautifulSoup								#导入库
soup = BeautifulSoup(open('index.html'),'lxml')					#创建对象
print(type(soup))									#输出soup的类型
print(soup.name)										#输出soup的name
print(soup.attrs)
